package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import com.hmall.api.domain.dto.OrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "trade-service", configuration = DefaultFeignConfig.class)
public interface OrderClient {

    @PutMapping("/orders")
    void updateOrder(@RequestBody OrderDTO orderDTO);

}
